package com.huitone.smspfm.socket.protocol.sgip.constant;

/**   
* @Title Constant.java 
* @Package com.huitone.smspfm.socket.protocol.sgip.constant 
* @Description TODO(用一句话描述该文件做什么) 
* @author ybliang   
* @date 2017年3月24日 下午2:46:48 
* @version V1.0   
*/
public class Constant {

	public static String defaultEncoding = "GBK";
	
	/**
	 * 最大群发号码数,超过该值的号码将被裁剪掉
	 */
	public static int maxUserCount = 100;
	
	public static enum MessageCodingE {
		
		ASCII(0),
		GBK(15);
		
		private int value;
		
		MessageCodingE(int i){
			this.value = i;
		}
		
		public int getValue() {
			return value;
		}
	}
	
	public static class MessageCodingP {
		
		public static String parse(int i) {
			switch (i) {
			case 0:
				return "ASCII";
			case 15:
				return "GBK";
			default:
				return "GBK";
			}
		}
	}
	
	public static enum MessageTypeE {
		
		SMS(0);
		
		private int value;
		
		MessageTypeE(int i){
			this.value = i;
		}
		
		public int getValue() {
			return value;
		}
	}
}
